package top.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.bean.Goods;
import top.dao.GoodsMapper;


@Service("goodsServiesImp")
public class GoodsServiesImp implements GoodsServies {
    /**
     *
     */
    @Autowired
    private GoodsMapper goodsMapper;
    @Override
     public int creatGoods(Goods goods) throws Exception {

       goodsMapper.inserdGoods(goods);
       return  0;

    }

    @Override
    public String say() throws Exception {
        return "niu";
    }
}
